const app = require("./app");
const config = require("./config");
const db = require("./config/db");

// 数据库连接
db.connect();

const server = app.listen(config.PORT, () => {
    console.log(`Server listening on port ${config.PORT}`);
});

module.exports = server;
